<template>
	<view style="height: 106rpx;">
		<view class="navgation-container">
			<view class="text-container">
				<uni-icons class="return" type="arrowleft" size="22" @click="navigationBack()"></uni-icons>
				<text class="title">{{title}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			returnIcon: {
				default: true
			},
			title: {
				type: String,
				default: '恩典系统'
			}
		},
		data() {
			return {
				isShow: true,
				icon: false
			};
		},
		mounted() {
			if (!this.returnIcon) {
				this.isShow = this.returnIcon
			}
		},
		methods: {
			navigationBack() {
				uni.navigateBack(1)
			}
		}
	}
</script>

<style>
	.navgation-container {
		width: 100%;
		height: 106rpx;
		position: fixed;
		background-color: #FFFFFF;
		z-index: 10;
	}

	.navgation-container .text-container {
		width: 100%;
		height: 52rpx;
		position: absolute;
		top: 40rpx;
		text-align: center;
		line-height: 52rpx;
	}

	.navgation-container .text-container .title {
		font-family: PingFang SC;
		font-style: normal;
		font-weight: 550;
		font-size: 34rpx;
		line-height: 52rpx;
		color: rgba(0, 0, 0, 0.85);
	}

	.navgation-container .text-container .return {
		position: absolute;
		font-weight: 580;
		left: 48rpx;
		margin: auto;
		line-height: 52rpx;
		font-size: 32rpx;
	}
</style>

